﻿<%@ Control Language="C#" Inherits="Core.Web.Code.UI.Controls.ChildControls.PostList" %>
<asp:Repeater ID="rptTopPosts" runat="server" Visible="false" OnItemDataBound="rptTopPosts_ItemDataBound">
    <HeaderTemplate>
        <div style="padding: 10px 14px 10px 14px;">
            <table class="post_list_ascx" cellpadding="0" cellspacing="0">
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td width="74">
                <a title="新窗口打开" href="#" target="_blank">
                    <img src='<%# GetImg(Eval("ID")) %>' border="0">
                    [<%# Eval("Topic.Name") %>] </a>
            </td>
            <td width="540">
                <%# Eval("Subject") %>
                <asp:Image ID="Img_Attach" AlternateText="图片附件" runat="server" Visible="false" />
                <asp:Image ID="Img_Hot" AlternateText="热门" runat="server" Visible="false" />
                <asp:Image ID="Img_Digest" AlternateText="精华" runat="server" Visible="false" />
                <asp:Image ID="Img_Agree" AlternateText="帖子被加分" runat="server" Visible="false" />
            </td>
            <td width="106">
                <%# Eval("PubUser.NickName")%></a><br />
                <span>
                    <%# string.Format("{0:yyyy-MM-dd}",Eval("CreateTime"))%></span>
            </td>
            <td width="100">
                <%# Eval("ReplyCount")%>/<%# Eval("Hits") %>
            </td>
            <td width="140">
                <a href="#">
                    <asp:Label ID="lblReplyUser" runat="server" Text="Label"></asp:Label></a><br />
                <a href="#"><span>
                    <asp:Label ID="lblReplyTime" runat="server" Text="Label"></asp:Label></span></a>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table></div>
        <div style="font-size: 12px; font-weight: normal; width: 100%; height: 32px; background-color: #f0f0f0;
            border-bottom: 1px solid #dedede; border-top: 1px solid #dedede; position: relative;">
            <span style="top: 25%; left: 10px; position: absolute;">版块主题</span>
        </div>
    </FooterTemplate>
</asp:Repeater>
<!--非置顶-->
<asp:Repeater ID="rptPostContent" runat="server" OnItemDataBound="rptPostContent_ItemDataBound">
    <HeaderTemplate>
        <div style="padding: 10px 14px 10px 14px;">
            <table class="post_list_ascx" cellpadding="0" cellspacing="0">
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td width="74">
                <a title="新窗口打开" href="#" target="_blank">
                    <img src='<%# GetImg(Eval("ID")) %>' border="0">
                    [<%# Eval("Topic.Name") %>] </a>
            </td>
            <td width="540">
                <%# Eval("Subject") %>
                <asp:Image ID="Img_Attach" AlternateText="图片附件" runat="server" Visible="false" />
                <asp:Image ID="Img_Hot" AlternateText="热门" runat="server" Visible="false" />
                <asp:Image ID="Img_Digest" AlternateText="精华" runat="server" Visible="false" />
                <asp:Image ID="Img_Agree" AlternateText="帖子被加分" runat="server" Visible="false" />
            </td>
            <td width="106">
                <%# Eval("PubUser.NickName")%></a><br />
                <span>
                    <%# string.Format("{0:yyyy-MM-dd}",Eval("CreateTime"))%></span>
            </td>
            <td width="100">
                <%# Eval("ReplyCount")%>/<%# Eval("Hits") %>
            </td>
            <td width="140">
                <a href="#">
                    <asp:Label ID="lblReplyUser" runat="server" Text="Label"></asp:Label></a><br />
                <a href="#"><span>
                    <asp:Label ID="lblReplyTime" runat="server" Text="Label"></asp:Label></span></a>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table></div>
    </FooterTemplate>
</asp:Repeater>
